package io.renren.modules.generator.service.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

import io.renren.common.utils.Query;
import io.renren.modules.generator.dao.GuardianDao;
import io.renren.modules.generator.entity.GuardianEntity;
import io.renren.modules.generator.service.GuardianService;



@Service("guardianService")
public class GuardianServiceImpl implements GuardianService {
	@Autowired
	private GuardianDao guardianDao;
	
	@Override
	public GuardianEntity queryObject(String guardianno){
		return guardianDao.queryObject(guardianno);
	}
	
	@Override
	public List<GuardianEntity> queryList(Map<String, Object> map){
		return guardianDao.queryList(map);
	}
	
	@Override
	public int queryTotal(Map<String, Object> map){
		return guardianDao.queryTotal(map);
	}
	
	@Override
	public void save(GuardianEntity guardian){
		guardianDao.save(guardian);
	}
	
	@Override
	public void update(GuardianEntity guardian){
		guardianDao.update(guardian);
	}
	
	@Override
	public void delete(String guardianno){
		guardianDao.delete(guardianno);
	}
	
	@Override
	public void deleteBatch(String[] guardiannos){
		guardianDao.deleteBatch(guardiannos);
	}

	@Override
	public List<GuardianEntity> queryListByName(Query query) {
		return guardianDao.queryListByName(query);
	}
	
}
